﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StockFinder.Model;

namespace StockFinder.Services.PriceAnalysis
{
    internal class PriceAnalyserHelper
    {
        /// <summary>
        /// Gets the number of days between Today and specificed date
        /// </summary>
        /// <param name="date"></param>
        /// <returns></returns>
        public static int DaysSince(DateTime date)
        {
            return Convert.ToInt32(((TimeSpan)(DateTime.Today - date)).TotalDays);
        }

        

        //public static decimal AverageVolume(int daysback)
        //{

        //}
    }
}
